package com.toby.day44;

import android.content.Intent;
import android.support.v7.app.ActionBarActivity;
import android.view.View;
import android.widget.Button;

import org.androidannotations.annotations.AfterInject;
import org.androidannotations.annotations.Click;
import org.androidannotations.annotations.EActivity;
import org.androidannotations.annotations.ViewById;

@EActivity(R.layout.activity_pay)
public class PayActivity extends ActionBarActivity {


    @ViewById
    Button aliPayBtn;
    @ViewById
    Button weiPayBtn;



    @Click({R.id.ali_pay_btn, R.id.wei_pay_btn})
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.ali_pay_btn:
                startActivity(new Intent(this, AliPayActivity_.class));
                break;
            case R.id.wei_pay_btn:
                startActivity(new Intent(this, WeiPayActivity_.class));
                break;
        }

    }
}
